<script lang="ts" setup name="SealCheckbox">
defineProps<{
  modelValue: boolean;
}>();

const emits = defineEmits<{
  "update:modelValue": [status: boolean];
}>();
</script>

<template>
  <div class="seal-checkbox" @click="emits('update:modelValue', !modelValue)">
    <i class="iconfont icon-checked" v-if="modelValue"></i>
    <i class="iconfont icon-unchecked" v-else></i>
    <!-- <span>提示文本</span> -->
  </div>
</template>

<style scoped lang="less">
.seal-checkbox {
  display: inline-block;
  margin-right: 2px;
  .icon-checked {
    color: @sealColor;
    ~ span {
      color: @sealColor;
    }
  }
  i {
    position: relative;
    top: 1px;
  }
  span {
    margin-left: 2px;
  }
}
</style>
